package com.example.monitorapp.viewmodel

import android.app.Application
import com.example.baselib.BaseViewModel
import com.example.baselib.constants.MyConstants
import com.example.monitorapp.BtnData
import java.util.ArrayList

/**
 * Author: sxygsj
 * Date: 2020/4/20 15:03
 * Description: 暂时没什么卵用，先写上
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
class MainViewModel(application: Application):BaseViewModel(application){
    fun getBtnData():MutableList<BtnData>? {
        val list = ArrayList<BtnData>()
        list.add(BtnData(MyConstants.SAFE,"安全监控", true, true))
        list.add(BtnData(MyConstants.PERSON,"人员定位", true, true))
        list.add(BtnData(MyConstants.PRODUCT, "产量监控",false, false))
        list.add(BtnData(MyConstants.VIDEO,"工业视频", true, true))
        list.add(BtnData(MyConstants.RESCUE, "救援管理",false, false))
        list.add(BtnData(MyConstants.DEVICE,"重大设备", false, false))
        list.add(BtnData(MyConstants.WATER, "水文监测",false, false))
        list.add(BtnData(MyConstants.KZDYL, "矿震和地应力",false, false))
        return list
    }

    private val TAG = MainViewModel::class.java.simpleName
}